<div class="menues index">
		<h2>
		<?php __('Menu');?>
		<?php echo $this->Html->link($this->Html->image('assets/icons/dashboard/95.png', array('alt' => 'Add New')),
										'/admin/'.$this->params['controller']. '/' .'add',  
										array('escape' => false, 'class'=>'tooltip table_icon', 'title' => __('Add New Menu',true), 'rel' => 'add'));
		?>
	</h2>
	<p><?php __('Add, Edit and Delete Banners');?></p>
	
	<table class = "normal">
	<thead>
		<tr>
				<th><?php __('Name');?></th>
				<th><?php __('Published');?></th>
				<th><?php __('Location');?></th>
				<th class="actions"><?php __('Actions');?></th>
		</tr>
	</thead>
	<tbody>
	<?php
	$i = 0;
	foreach ($menues as $menue):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?> id="row<?php echo $menue['Menue']['id']; ?>">
		<td><?php echo $menue['Menue']['name']; ?>&nbsp;</td>
		<td><?php echo $menue['Menue']['published']; ?>&nbsp;</td>
		<td><?php echo $menue['Menue']['url']; ?>&nbsp;</td>
		<td class="actions">
	<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Pencil.png', array('alt' => 'Edit')),
									'/admin/'.$this->params['controller']. '/' .'add'.'/'.$menue['Menue']['id'],  
									array('rel' => 'edit', 'escape' => false, 'class'=>'tooltip table_icon'));
	?>
	<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Trash.png', array('alt' => 'Delete')),
									'/admin/'.$this->params['controller']. '/' .'delete'.'/'.$menue['Menue']['id'],  
									array('rel' => 'delete', 'escape' => false, 'class'=>'tooltip table_icon'));
	?>
</td>
	</tr>
<?php endforeach; ?>
	</tbody>
	</table>